<div class="z1ketnapdvs index">
	<h2><?php __('Z1ketnapdvs');?></h2>
    <?php
//function created (uses for checking all checkbox and confirm to delete selected item) which is in /js/custom_scripts.js
    echo $javascript->link('custom_scripts');
?>
<?php echo $this->Form->create('z1ketnapdvs',array('url'=>'luu/'.$cd_id));?>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th style="width: 10px;"><input type="checkbox" onclick="checkAll(this);" /></th>
			<th><?php echo $this->Paginator->sort('mssv');?></th>
			<th><?php echo $this->Paginator->sort('hoten');?></th>
			<th><?php echo $this->Paginator->sort('ngaysinh');?></th>
			<th><?php echo $this->Paginator->sort('noisinh');?></th>
			<th><?php echo $this->Paginator->sort('phai');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($z1ketnapdvs as $z1ketnapdv):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<?php
	           echo '<td width="3%"><input type="checkbox" value="'.$z1ketnapdv['Z1ketnapdv']['id'].'" 
            name="data[Z1ketnapdv][checked][]" id="'.$i.'" ></td>';
        ?>
		<td><?php echo $z1ketnapdv['Z1ketnapdv']['mssv']; ?>&nbsp;</td>
		<td><?php echo $z1ketnapdv['Z1ketnapdv']['hoten']; ?>&nbsp;</td>
		<td><?php echo $z1ketnapdv['Z1ketnapdv']['ngaysinh']; ?>&nbsp;</td>
		<td><?php echo $z1ketnapdv['Z1ketnapdv']['noisinh']; ?>&nbsp;</td>
		<td><?php echo $z1ketnapdv['Z1ketnapdv']['phai']; ?>&nbsp;</td>
		
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Trang %page%/%pages%, hiện có %count% mẫu tin', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
    <div align="center" style="margin-top: 10px;"><?php echo $this->Form->end(__('Đề nghị kết nạp đoàn viên mới', true));?></div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Z1ketnapdv', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Tongiaos', true), array('controller' => 'tongiaos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tongiao', true), array('controller' => 'tongiaos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Phuongxas', true), array('controller' => 'phuongxas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Phuongxa', true), array('controller' => 'phuongxas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Dantocs', true), array('controller' => 'dantocs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Dantoc', true), array('controller' => 'dantocs', 'action' => 'add')); ?> </li>
	</ul>
</div>